home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 February
/
EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso
/
enigma
/
earcd
/
sviluppo
/
svilupp2
/
hunk.lha
/
Hunk
/
PrintReloc.rexx
< prev
Wrap
OS/2 REXX Batch file
|
1996-12-08
|
603b
|
27 lines
/* Print the complete relocation table with "Hunk". © 1996 THOR */
IF OPEN(Printer, 'PRT:', 'W') THEN DO
CALL WRITELN(Printer, 'List of reloc entries')
CALL WRITELN(Printer, '')
EDITHUNK
DELOCATE
EDITRELOC 0
RELOC 'CNT'
SAY CNT.COUNT 'reloc entries'
LAST=0
X=0
EDITENTRY 0
DO i=0 TO CNT.COUNT-1
ENTRY 0 0 i 'HERE'
CALL WRITECH(Printer,INSERT('0x' || D2X(HERE.OFFSET),'',1,8,' ') INSERT('>0x' || D2X(HERE.OFFSET-LAST),'',1,7,' '))
X=X+1
IF X=4 THEN DO
X=0
CALL WRITELN(Printer,'')
END
LAST=HERE.OFFSET
END
END